package myschool.dao;


import myschool.entity.ExamResult;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface ExamResultDao {
    public int add(ExamResult s);

    public int update(ExamResult s);

    public int del(int id);

    /**
     * 根据主键读取单个对象
     *
     * @param id
     * @return
     */
    public ExamResult get(long id);

    public List<ExamResult> findAll();
    public List<ExamResult> paging(@Param("pageNo") int pageNo, @Param("size") int pageSize);
    public List<ExamResult> paging2(@Param("pageNo") int pageNo, @Param("size") int pageSize);

    //总数
    public int findTotal();
}
